package net.guerlab.smart.platform.user.web.excel;

import com.alibaba.excel.annotation.ExcelProperty;
import lombok.Data;
import net.guerlab.smart.platform.commons.enums.Gender;

import java.time.LocalDateTime;

/**
 * 用户
 *
 * @author guer
 */
@Data
public class UserExcelExport {

    /**
     * 用户id
     */
    @ExcelProperty(value = "用户id", index = 0)
    private Long userId;

    /**
     * 用户名
     */
    @ExcelProperty(value = "用户名", index = 1)
    private String username;

    /**
     * 姓名
     */
    @ExcelProperty(value = "姓名", index = 2)
    private String name;

    /**
     * 部门
     */
    @ExcelProperty(value = "部门", index = 3)
    private String departmentName;

    /**
     * 主职务
     */
    @ExcelProperty(value = "主职务", index = 4)
    private String mainDutyName;

    /**
     * 性别
     */
    @ExcelProperty(value = "性别", index = 5)
    private Gender gender;

    /**
     * 电子邮箱
     */
    @ExcelProperty(value = "电子邮箱", index = 6)
    private String email;

    /**
     * 电话
     */
    @ExcelProperty(value = "电话", index = 7)
    private String phone;

    /**
     * 注册时间
     */
    @ExcelProperty(value = "注册时间", index = 8)
    private LocalDateTime registrationTime;

    /**
     * 最后登录时间
     */
    @ExcelProperty(value = "最后登录时间", index = 9)
    private LocalDateTime lastLoginTime;
}
